package com.changgou.goods.dao;


import com.changgou.goods.pojo.pojo.Sku;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface SkuMapper extends Mapper<Sku> {
    @Update("UPDATE tb_sku  set num=num-#{num} where id=#{id} and num >=#{num}")
    int decrCopunt(@Param(value = "id") String id, @Param(value = "num") String num);
}
